-- GENERATED SPELL FOR [Scarlet Commander] --


function spell0_28936(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(52221,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28936', 644, 1)
end

function spell1_28936(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(52818,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28936', 637, 1)
end

function Sorts_28936(pUnit, Event)
local choix_sorts_28936 = math.random(0, 1)
if choix_sorts_28936 == 0 then
pUnit:RegisterEvent('spell0_28936', 1, 1)
end
if choix_sorts_28936 == 1 then
pUnit:RegisterEvent('spell1_28936', 1, 1)
end
end

function mob28936_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28936', math.random(1500, 3000), 1)
end

function mob28936_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28936_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28936_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28936, 1, 'mob28936_Action')
RegisterUnitEvent(28936, 2, 'mob28936_Leave')
RegisterUnitEvent(28936, 3, 'mob28936_Kill')
RegisterUnitEvent(28936, 4, 'mob28936_Die')
